RuntimeException: The specified "/var/www/vhosts/istikbalgreece.gr/httpdocs/generated/code/Magento/Framework/App/Response/Http/Interceptor.php.488841" file couldn't be written. Warning!file_put_contents(/var/www/vhosts/istikbalgreece.gr/httpdocs/generated/code/Magento/Framework/App/Response/Http/Interceptor.php.488841): failed to open stream: No such file or directory Class Magento\Framework\App\Response\Http\Interceptor generation error: The requested class did not generate properly, because the 'generated' directory permission is read-only. If --- after running the 'bin/magento setup:di:compile' CLI command when the 'generated' directory permission is set to write --- the requested class did not generate properly, then you must add the generated class object to the signature of the related construct method, only. in /var/www/vhosts/istikbalgreece.gr/httpdocs/vendor/magento/framework/Code/Generator.php:135 Stack trace: #0 /var/www/vhosts/istikbalgreece.gr/httpdocs/vendor/magento/framework/Code/Generator/Autoloader.php(35): Magento\Framework\Code\Generator->generateClass() #1 [internal function]: Magento\Framework\Code\Generator\Autoloader->load() #2 [internal function]: spl_autoload_call() #3 /var/www/vhosts/istikbalgreece.gr/httpdocs/vendor/magento/framework/Code/Reader/ClassReader.php(19): ReflectionClass->__construct() #4 /var/www/vhosts/istikbalgreece.gr/httpdocs/vendor/magento/framework/ObjectManager/Definition/Runtime.php(49): Magento\Framework\Code\Reader\ClassReader->getConstructor() #5 /var/www/vhosts/istikbalgreece.gr/httpdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(48): Magento\Framework\ObjectManager\Definition\Runtime->getParameters() #6 /var/www/vhosts/istikbalgreece.gr/httpdocs/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create() #7 /var/www/vhosts/istikbalgreece.gr/httpdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(160): Magento\Framework\ObjectManager\ObjectManager->get() #8 /var/www/vhosts/istikbalgreece.gr/httpdocs/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(246): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgument() #9 /var/www/vhosts/istikbalgreece.gr/httpdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): Magento\Framework\ObjectManager\Factory\AbstractFactory->resolveArgumentsInRuntime() #10 /var/www/vhosts/istikbalgreece.gr/httpdocs/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->_resolveArguments() #11 /var/www/vhosts/istikbalgreece.gr/httpdocs/vendor/magento/framework/ObjectManager/ObjectManager.php(56): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create() #12 /var/www/vhosts/istikbalgreece.gr/httpdocs/vendor/magento/framework/App/Bootstrap.php(234): Magento\Framework\ObjectManager\ObjectManager->create() #13 /var/www/vhosts/istikbalgreece.gr/httpdocs/pub/index.php(39): Magento\Framework\App\Bootstrap->createApplication() #14 {main}